#include <iostream>
using namespace std;

template <typename T1, typename T2>
void func(T1 x, T2 y){
    cout << x << " : " << y << endl;
}

int main(int argc, const char *argv[]){
    func<string, int>("年龄", 18);
    func<string, double>("薪资", 2528.32);
    func<char, int>('X', 110);
    return 0;
}